<%@ page import="org.joda.time.LocalDate" %>
<!doctype html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'searchquery.label', default: 'Search Query')}"/>
    <title>Generate Excel spreadsheet of queries</title>
</head>

<body>

<div id="create-searchquery" class="content scaffold-create" role="main">
    <h1>Generate Excel spreadsheet of past search queries</h1>
    <g:form action="generateExcel" controller="searchQuery">

        <label for="From">
            From:
        </label>
        <g:render template="/templates/date" model="[date:new LocalDate().minusMonths(1), varName: 'fromDate']"/>

        <label for="To">
            To:
        </label>
        <g:render template="/templates/date" model="[date:new LocalDate(), varName: 'toDate']"/>


        <g:submitButton name="create" class="save"
                        value="${message(code: 'default.button.create.label', default: 'Search')}"/>
    </g:form>
</div>
</body>
</html>
